package com.etone.prodcons;

public class Consumer implements Runnable {

	ProQueue<?> queue = null;
	
	public Consumer(ProQueue<?> queue){
		this.queue = queue;
	}

	@Override
	public void run() {
		while(true){
			System.out.println("Taked " + queue.take());
			System.out.println();
			System.out.println();
			try {
				Thread.sleep(10);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}

	}
}
